package com.wo.android.pockybill;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

import com.wo.android.pockybill.ui.NotifyComponet;
import com.wo.android.pockybill.ui.NotifyComponetImpl;
import com.wow.wa.bill.serivce.BillService;
import com.wow.wa.bill.serivce.BillServiceImpl;

public class BillReceiver extends BroadcastReceiver {
	private static final String TAG = "BillReceiver";
	public static String NOTIFY_BILL = "notify_bill";
	public static String NOTIFY_ALL_BILL = "notify_all_bill";// 通報所有
	private NotifyComponet notifyComponet;

	private BillService service;

	public BillReceiver() {

	}

	@Override
	public void onReceive(Context context, Intent intent) {

		this.service = new BillServiceImpl(context);

		// 定時時間到做的事件
		if (intent.getAction().equals(NotifyComponet.DAY_TYPE)) {
			this.notifyComponet = new NotifyComponetImpl(context);
			this.notifyComponet.notifyNoPayied();
		}

	}
}
